trigger:
  batch: true
  branches:
    include:
      - main
  paths:
    include:
    - '*'
    exclude:
    - '**.md'
    - eng/Version.Details.xml
    - .devcontainer/*
    - .github/*
    - docs/*
    - LICENSE.TXT
    - PATENTS.TXT
    - THIRD-PARTY-NOTICES.TXT

pr: none

variables:
  - template: /eng/pipelines/common/variables.yml

extends:
  template:  /eng/pipelines/common/templates/pipeline-with-resources.yml
  parameters:
    stages:
    - stage: Build
      jobs:

      - template: /eng/pipelines/common/platform-matrix.yml
        parameters:
          jobTemplate: /eng/pipelines/common/global-build-job.yml
          buildConfig: debug
          platforms:
            - windows_x64
          jobParameters:
            enableRichCodeNavigation: true
            richCodeNavigationLanguage: "csharp"
            nameSuffix: Libs
            timeoutInMinutes: 240
            buildArgs: -s libs.sfx+libs.oob -allConfigurations
            preBuildSteps:
              - script: dotnet.cmd nuget add source -n richnav "https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservices/nuget/v3/index.json"
                displayName: Add richnav NuGet feed

      - template: /eng/pipelines/common/platform-matrix.yml
        parameters:
          jobTemplate: /eng/pipelines/common/global-build-job.yml
          buildConfig: debug
          platforms:
            - windows_x64
          jobParameters:
            enableRichCodeNavigation: true
            richCodeNavigationLanguage: "csharp,cpp"
            nameSuffix: Runtimes
            timeoutInMinutes: 240
            buildArgs: -s clr+mono
            preBuildSteps:
              - script: dotnet.cmd nuget add source -n richnav "https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservices/nuget/v3/index.json"
                displayName: Add richnav NuGet feed